<template>
    <up-navbar
        :title="props.title"
        placeholder
        :border="true"
        @leftClick="leftClick"
    >
        <!-- <template #left v-if="!props.leftArrow">
            <text style="color: #fff">></text>
        </template> -->
    </up-navbar>
</template>
<script setup>
const props = defineProps({
    title: {
        type: String,
        default: '蕴明计划维修系统',
    },
    leftArrow: {
        type: Boolean,
        default: false,
    },
});
const emits = defineEmits(['leftClick']);

const leftClick = () => {
    emits('leftClick');
    uni.navigateTo({
        url: '/pages/home/home',
    });
};
</script>
